#ifndef _FIELD_H_

#define _FIELD_H_

#include "common.h"
#include "grid.h"
#include "refCount.h"

namespace pavan {

template<class itype , class dtype , int dim>
  class field : public refCount {
    public:
      /// A field always requires a grid to hook on to
      field( const grid<itype,dtype,dim> &G , const char *name) :
       _time() , _name(name) , refCount() {
        _grid = &G;
      }

    protected:
      const grid<itype,dtype,dim> *_grid;
      const std::string _name;
      Time _time;
};

}

#endif

